import Vue from 'vue'
import App from '@/App'
import store from '@/store/index.js'
import router from 'mpvue-router-patch'
import {fly,flyRequest,flyResponse} from '@/config/flyio' //flyio 请求插件.


Vue.prototype.fly = fly;//vue 原型挂载属性
Vue.prototype.store = store;//vue 原型挂载属性
Vue.use(router)//路由
Vue.config.productionTip = false
App.store = store
App.mpType = 'app'



flyRequest(); //请求拦截
flyResponse();//响应拦截
const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    pages: [],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#000',
      navigationBarTitleText: '万象大考',
      navigationBarTextStyle: 'white'
    }
  }
}
